import request from "@/utils/request";
export const baseUrl =
  import.meta.env.VITE_APP_ENV == "development"
    ? import.meta.env.VITE_APP_BASE_API
    : window.location.origin;

// export const uploadUrl = baseUrl + "/api/common/uploadFile";
export const uploadUrl = baseUrl + "/member/common/uploadFile";

// 获取地区
export function getArea(params) {
  return request({
    url: "member/areas/getList",
    method: "GET",
    params,
  });
}
export function getArea2(params) {
  return request({
    url: "api/areas/getList",
    method: "GET",
    params,
  });
}
// 获取收款账号
export function getMoneySet(params) {
  return request({
    url: "api/czBank/getMoneySet",
    method: "GET",
    params,
  });
}
